﻿<UserControl x:Class="BTM_Client_Application.StationInfoControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
             mc:Ignorable="d" 
             d:DesignHeight="250" d:DesignWidth="150"  Width="auto" MinWidth="150" Background="Transparent">

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colours.xaml" />
                <ResourceDictionary Source="pack://application:,,,/Styles/UserControls.xaml" />
                <ResourceDictionary Source="pack://application:,,,/Styles/ButtonStyles.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
                <ResourceDictionary Source="pack://application:,,,/Styles/MyResources.xaml" />
            </ResourceDictionary.MergedDictionaries>
            <Style x:Key="MyHeaderStyle" TargetType="{x:Type GridViewColumnHeader}">
                <Setter Property="Visibility" Value="Collapsed" />
            </Style>
        </ResourceDictionary>
    </UserControl.Resources>


    <Border CornerRadius="7" Padding="4" Background="LightGreen" BorderThickness="2">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="30"/>
                <RowDefinition Height="26"/>
                <RowDefinition Height="26"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="24"/>
                </Grid.ColumnDefinitions>
                <Border Padding="4,0,4,0" VerticalAlignment="Center" CornerRadius="5" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" Background="#CF181818">
                    <Label Name="StationBox" Content="Station" Foreground="White" FontWeight="SemiBold" FontSize="13" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                </Border>
                <Button Name="CloseButton" Grid.Column="1" VerticalAlignment="top" HorizontalAlignment="Right" Content="x" />
            </Grid>
            <StackPanel Grid.Column="0" Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                <Label Name="RegionLabel" FontWeight="DemiBold" Content="Region:" VerticalAlignment="Center" Margin="0,0,3,0"/>
                <Label Name="RegionBox" Content="Region" VerticalAlignment="Center"/>
            </StackPanel>
            <StackPanel Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                <Label Name="FzLabel" FontWeight="DemiBold" Content="FZ:" VerticalAlignment="Center" Margin="0,0,3,0"/>
                <Label Name="FzBox" Content="frequency zone" VerticalAlignment="Center"/>
            </StackPanel>
            <TextBox controls:TextboxHelper.Watermark="Additional info" Name="AdditionalInfoBox" AcceptsReturn="True" TextWrapping="Wrap" MaxWidth="160" Grid.Row="3"/>
            <Button Name="ShowOnMapButton" Click="ShowOnMapButton_OnClick" Style="{StaticResource StandardButton}" Grid.Row="4" Margin="0,4,0,4" HorizontalAlignment="Center" VerticalAlignment="Center" Content=" Show on map "/>
            <ListView Name="DeviceList" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="5" Grid.ColumnSpan="2"/>

        </Grid>
    </Border>
</UserControl>
